#ifndef LAYOUT_VIEWED_H
#define LAYOUT_VIEWED_H

#include "RectEd.h"

class LayoutViewEd
{
public:
	LayoutViewEd();
	~LayoutViewEd();

	void Layout();
	MGUI_Layout * GetLayout() { return mLayout; }

protected:
	MGUI_Layout * mLayout;
	MGUI_ImageBox * mImageBox_Back;
	RectEd * mRectEd;

protected:
	void OnRectEdChanged_(MGUI_Rect rect);
	void OnEditRectChanged_(MGUI_Rect rect);

protected:
	tListener1<LayoutViewEd, MGUI_Rect> OnRectEdChanged;
	tListener1<LayoutViewEd, MGUI_Rect> OnEditRectChanged;
};

#endif